package Day01;

import java.io.IOException;
import java.util.Scanner;

public class VIP {
    public static void main(String[] args) throws InterruptedException, IOException {
        //浏览器
        //ProcessBuilder pb = new ProcessBuilder("C:\\Program Files (x86)\\Microsoft\\Edge\\Application\\msedge.exe","www.baidu.com");    //参数一:你要用哪个浏览器打开，参数二:你要跳转到的内容网页
        /*for(;;){
            pb.start();
            Thread.sleep(60000);
        }*/

        String jx = "https://z1.m1907.cn/?jx=";
        Scanner zzc = new Scanner(System.in);
        System.out.println("请输入想要看的电影，并且输入给我:");
        String movie = zzc.next();

        String vip = jx + movie;
        ProcessBuilder pb =
                new ProcessBuilder("C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe",vip);
        pb.start();

    }

}
